#ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED

#include <fstream>
#include <string>
#include <stdio.h>
#include <iostream>
#include <map>

using namespace std;

struct Settings
{
    string PortNumber;
    string BuatRate;
    string MaxUsersNum;
    string Version;
};

class config
{
    public:
		config();
		~config();
		Settings cfg;
		bool LoadConfig();
		void SetConfigVariable(string, string);
		bool SaveConfig();
    private:
        string strmsg;
        void PutIntoHashTable(char[255]);
        void TransFromHash2UserObj();
        map<string, string> ConfigData;
        void SetVariable(string, string);
    protected:
};


#endif // CONFIG_H_INCLUDED
